package com.ns.scs.vsb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ns.scs.vsb.dto.ViewBoardPageDto;
import com.ns.scs.vsb.entry.ViewBoard;
import com.ns.scs.vsb.vo.ViewBoardVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试图看板模块数据层接口
 *
 * @author lw
 * @version : v1.0.0
 * @since 2024-11-08
 */
@Mapper
public interface ViewBoardMapper extends BaseMapper<ViewBoard> {

    /**
     * 分页查询
     *
     * @param dto 参数
     * @return ViewBoardVO
     */
    Page<ViewBoardVO> getList(@Param("dto") ViewBoardPageDto dto, @Param("page") Page<Object> page);

    /**
     * 根据code 查询看板数据
     *
     * @param key key
     * @return ViewBoardVO
     */
    List<ViewBoardVO> getViewBoard(String key);
}
